<div style="height: 100%;">




    <a href="/controller">
    <div class="logo_box">
        <div class="icon">
        <img src="/controller/common/asset/image/circledesign_logo.jpg"  >
        </div>

        <div  class="title">圆点设计</div>
        <div  class="function">
            <span><i class="fa fa-home" aria-hidden="true" /></i> 系统首页</span>
<!--            <span>点餐端</span>-->
<!--            <span>领餐端</span>-->
        </div>
    </div>
    </a>


    <hr>







<ul class="layui-nav layui-nav-tree" >
<!-- 侧边导航: <ul class="layui-nav layui-nav-tree layui-nav-side"> -->

<?php $quanxian=explode(",",$_SESSION['quanxian']); ?>






    <?foreach ($plate as $k=>$v) {
        if(($v['status']=='public') and
            ((in_array($k,$quanxian)) or (in_array("admin",$quanxian))) and
            ($v['setting']['sidebar_show'] != '隐藏')
        ){?>
            <li>


                    <li class="layui-nav-item <?php if($_REQUEST['now_extender']==$k){echo "layui-nav-itemed";}?> <?echo $k?>">
                    <a href="javascript:;"><i class="layui-icon"><?echo $v['icon']?></i><?echo $v['name']?></a>
                    <dl class="layui-nav-child">

                    <!--        二级菜单循环-->
                        <?foreach ($v['sidebar'] as $k2=>$v2) {

                            if((
                                    (isset($v2['permission'])) && (in_array($v2['permission'],$quanxian)) &&
                                    ($v2['permission'])
                                )  or (in_array("admin",$quanxian)) )
                            {?>
                                <dd><a href="<?echo "/controller/extender/".$v['folder']?>/<?echo $v2['url']?>"> <?echo $v2['name']?> </a></dd>

                             <?}
                             elseif(!$v2['permission'])
                             {?>
                                 <dd><a href="<?echo "/controller/extender/".$v['folder']?>/<?echo $v2['url']?>"> <?echo $v2['name']?> </a></dd>
                             <?}?>
                        <?}?>

                    </dl>
                    </li>
            </li>
        <?}?>
<?}?>



</ul>




    <div class="user_box">


        <a class="icon" href="#"
           onclick="window_eject('/controller/extender/user/view/data_edit_window.php?nid=<?php echo $__user['nid'] ?>')"
            <?if($__user['icon']){$member_icon="/uploadfiles/member/".$__user['icon'];}
            else{$member_icon="/controller/common/asset/image/no_image.jpg";}?>
             style="background-image: url('<?echo $member_icon?>')">
        </a>



        <div  class="title els1">
            <a href="#" onclick="window_eject('/controller/extender/user/view/data_edit_window.php?nid=<?php echo $__user['nid'] ?>')">
                <b> <i class="fa fa-user"></i> <?echo $__user['name']?></b>
            </a>

        </div>

        <div  class="title">
            <a  href="#"  onclick="window_eject('/controller/extender/user/view/data_edit_window.php?nid=<?php echo $__user['nid'] ?>')">
                <i class="fa fa-envelope"></i> *消息
            </a>
            <a href="/controller/loginout.php" style="margin-left: 18px">
                <i class="fa fa-sign-out"></i> 登出
            </a>
        </div>
    </div>



</div>
